package com.mhy.book.factory;

import com.mhy.book.mapper.BookMapper;
import com.mhy.book.mapper.impl.BookMapperImpl;
import com.mhy.book.mapper.impl.BookMapperImpl2;
import org.springframework.beans.factory.FactoryBean;




public class MapperFactoryBean implements FactoryBean<BookMapper> {


    /*
     * 获取bean对象
     *
     *
     * */
    @Override
    public BookMapper getObject() throws Exception {
        return new BookMapperImpl();
    }


    /*
    *
    * 获取类对象
    * */
    @Override
    public Class<?> getObjectType() {
        return BookMapper.class;
    }
}
